const express = require('express')
const app = express()
const port = 3000

//引入登录路由
const loginRouter = require('./router/login.js')
app.use('/api', loginRouter)
const userRouter = require('./router/user.js')
app.use('/api', userRouter)
const menuRouter = require('./router/menu.js')
app.use('/api', menuRouter)
const roleRouter = require('./router/role.js')
app.use('/api', roleRouter)
const deptRouter = require('./router/dept.js')
app.use('/api', deptRouter)
const postRouter = require('./router/post.js')
app.use('/api', postRouter)
const dictRouter = require('./router/dict.js')
app.use('/api', dictRouter)

app.listen(port, () => {
    console.log('服务启动成功：http://localhsot:3000/')
})